package com.web.surf.sample.eshop.faces.interfaces;

import java.util.List;

import com.web.surf.sample.eshop.faces.core.AbstractBean;

/**
 * Interface for data pagination
 * 
 * @author SavenkoNV
 */
public interface IPager {

	public List<AbstractBean> getDataList();

	public void executeNavigation(int firstRow);

	public void executeSorting(String sortField, boolean sortAscending);

	public void setTotalPages(int totalPages);

	public void setCurrentPage(int currentPage);

	public void setFirstRow(int firstRow);

	public int getTotalPages();

	public int getFirstRow();

	public int getCurrentPage();

	public int getRowsPerPage();

	public void setRowsPerPage(int rowsPerPage);

	public int getTotalRows();
}